import { defineStore } from "pinia";
import { EntityInfo } from "@/api/interface/Generation/EntityInfo";
import { FieldInfo } from "@/api/interface/Generation/FieldInfo";

export const useStoreGeneration = defineStore({
  id: "StoreGeneration",
  state: () => {
    // 推荐使用 完整类型推断的箭头函数
    return {
      // 所有这些属性都将自动推断其类型
      CurrEntityName: "" //这个属性需要与columns进行数据共享，双击的时候进行快捷修改
    };
  },
  getters: {
    EntityName: state => state.CurrEntityName
  },
  actions: {
    SetCurrEntityName(name: string) {
      this.CurrEntityName = name;
    }
  }
});
